home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / Xutil.h.z / Xutil.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  20.2 KB  |  875 lines

  1. /* $XConsortium: Xutil.h,v 11.73 91/07/30 16:21:37 rws Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XUTIL_H_
  28. #define _XUTIL_H_
  29.  
  30. /* You must include <X11/Xlib.h> before including this file */
  31.  
  32. /* 
  33.  * Bitmask returned by XParseGeometry().  Each bit tells if the corresponding
  34.  * value (x, y, width, height) was found in the parsed string.
  35.  */
  36. #define NoValue        0x0000
  37. #define XValue      0x0001
  38. #define YValue        0x0002
  39. #define WidthValue      0x0004
  40. #define HeightValue      0x0008
  41. #define AllValues     0x000F
  42. #define XNegative     0x0010
  43. #define YNegative     0x0020
  44.  
  45. /*
  46.  * new version containing base_width, base_height, and win_gravity fields;
  47.  * used with WM_NORMAL_HINTS.
  48.  */
  49. typedef struct {
  50.         long flags;    /* marks which fields in this structure are defined */
  51.     int x, y;        /* obsolete for new window mgrs, but clients */
  52.     int width, height;    /* should set so old wm's don't mess up */
  53.     int min_width, min_height;
  54.     int max_width, max_height;
  55.         int width_inc, height_inc;
  56.     struct {
  57.         int x;    /* numerator */
  58.         int y;    /* denominator */
  59.     } min_aspect, max_aspect;
  60.     int base_width, base_height;        /* added by ICCCM version 1 */
  61.     int win_gravity;            /* added by ICCCM version 1 */
  62. } XSizeHints;
  63.  
  64. /*
  65.  * The next block of definitions are for window manager properties that
  66.  * clients and applications use for communication.
  67.  */
  68.  
  69. /* flags argument in size hints */
  70. #define USPosition    (1L << 0) /* user specified x, y */
  71. #define USSize        (1L << 1) /* user specified width, height */
  72.  
  73. #define PPosition    (1L << 2) /* program specified position */
  74. #define PSize        (1L << 3) /* program specified size */
  75. #define PMinSize    (1L << 4) /* program specified minimum size */
  76. #define PMaxSize    (1L << 5) /* program specified maximum size */
  77. #define PResizeInc    (1L << 6) /* program specified resize increments */
  78. #define PAspect        (1L << 7) /* program specified min and max aspect ratios */
  79. #define PBaseSize    (1L << 8) /* program specified base for incrementing */
  80. #define PWinGravity    (1L << 9) /* program specified window gravity */
  81.  
  82. /* obsolete */
  83. #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
  84.  
  85.  
  86.  
  87. typedef struct {
  88.     long flags;    /* marks which fields in this structure are defined */
  89.     Bool input;    /* does this application rely on the window manager to
  90.             get keyboard input? */
  91.     int initial_state;    /* see below */
  92.     Pixmap icon_pixmap;    /* pixmap to be used as icon */
  93.     Window icon_window;     /* window to be used as icon */
  94.     int icon_x, icon_y;     /* initial position of icon */
  95.     Pixmap icon_mask;    /* icon mask bitmap */
  96.     XID window_group;    /* id of related window group */
  97.     /* this structure may be extended in the future */
  98. } XWMHints;
  99.  
  100. /* definition for flags of XWMHints */
  101.  
  102. #define InputHint         (1L << 0)
  103. #define StateHint         (1L << 1)
  104. #define IconPixmapHint        (1L << 2)
  105. #define IconWindowHint        (1L << 3)
  106. #define IconPositionHint     (1L << 4)
  107. #define IconMaskHint        (1L << 5)
  108. #define WindowGroupHint        (1L << 6)
  109. #define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
  110. IconPositionHint|IconMaskHint|WindowGroupHint)
  111.  
  112. /* definitions for initial window state */
  113. #define WithdrawnState 0    /* for windows that are not mapped */
  114. #define NormalState 1    /* most applications want to start this way */
  115. #define IconicState 3    /* application wants to start as an icon */
  116.  
  117. /*
  118.  * Obsolete states no longer defined by ICCCM
  119.  */
  120. #define DontCareState 0    /* don't know or care */
  121. #define ZoomState 2    /* application wants to start zoomed */
  122. #define InactiveState 4    /* application believes it is seldom used; */
  123.             /* some wm's may put it on inactive menu */
  124.  
  125.  
  126. /*
  127.  * new structure for manipulating TEXT properties; used with WM_NAME, 
  128.  * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
  129.  */
  130. typedef struct {
  131.     unsigned char *value;        /* same as Property routines */
  132.     Atom encoding;            /* prop type */
  133.     int format;                /* prop data format: 8, 16, or 32 */
  134.     unsigned long nitems;        /* number of data items in value */
  135. } XTextProperty;
  136.  
  137. #define XNoMemory -1
  138. #define XLocaleNotSupported -2
  139. #define XConverterNotFound -3
  140.  
  141. typedef enum {
  142.     XStringStyle,        /* STRING */
  143.     XCompoundTextStyle,        /* COMPOUND_TEXT */
  144.     XTextStyle,            /* text in owner's encoding (current locale)*/
  145.     XStdICCTextStyle        /* STRING, else COMPOUND_TEXT */
  146. } XICCEncodingStyle;
  147.  
  148. typedef struct {
  149.     int min_width, min_height;
  150.     int max_width, max_height;
  151.     int width_inc, height_inc;
  152. } XIconSize;
  153.  
  154. typedef struct {
  155.     char *res_name;
  156.     char *res_class;
  157. } XClassHint;
  158.  
  159. /*
  160.  * These macros are used to give some sugar to the image routines so that
  161.  * naive people are more comfortable with them.
  162.  */
  163. #define XDestroyImage(ximage) \
  164.     ((*((ximage)->f.destroy_image))((ximage)))
  165. #define XGetPixel(ximage, x, y) \
  166.     ((*((ximage)->f.get_pixel))((ximage), (x), (y)))
  167. #define XPutPixel(ximage, x, y, pixel) \
  168.     ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel)))
  169. #define XSubImage(ximage, x, y, width, height)  \
  170.     ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height)))
  171. #define XAddPixel(ximage, value) \
  172.     ((*((ximage)->f.add_pixel))((ximage), (value)))
  173.  
  174. /*
  175.  * Compose sequence status structure, used in calling XLookupString.
  176.  */
  177. typedef struct _XComposeStatus {
  178.     XPointer compose_ptr;    /* state table pointer */
  179.     int chars_matched;        /* match state */
  180. } XComposeStatus;
  181.  
  182. /*
  183.  * Keysym macros, used on Keysyms to test for classes of symbols
  184.  */
  185. #define IsKeypadKey(keysym) \
  186.   (((unsigned)(keysym) >= XK_KP_Space) && ((unsigned)(keysym) <= XK_KP_Equal))
  187.  
  188. #define IsPrivateKeypadKey(keysym) \
  189.   (((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF))
  190.  
  191. #define IsCursorKey(keysym) \
  192.   (((unsigned)(keysym) >= XK_Home)     && ((unsigned)(keysym) <  XK_Select))
  193.  
  194. #define IsPFKey(keysym) \
  195.   (((unsigned)(keysym) >= XK_KP_F1)     && ((unsigned)(keysym) <= XK_KP_F4))
  196.  
  197. #define IsFunctionKey(keysym) \
  198.   (((unsigned)(keysym) >= XK_F1)       && ((unsigned)(keysym) <= XK_F35))
  199.  
  200. #define IsMiscFunctionKey(keysym) \
  201.   (((unsigned)(keysym) >= XK_Select)   && ((unsigned)(keysym) <= XK_Break))
  202.  
  203. #define IsModifierKey(keysym) \
  204.   ((((unsigned)(keysym) >= XK_Shift_L) && ((unsigned)(keysym) <= XK_Hyper_R)) \
  205.    || ((unsigned)(keysym) == XK_Mode_switch) \
  206.    || ((unsigned)(keysym) == XK_Num_Lock))
  207. /*
  208.  * opaque reference to Region data type 
  209.  */
  210. typedef struct _XRegion *Region; 
  211.  
  212. /* Return values from XRectInRegion() */
  213.  
  214. #define RectangleOut 0
  215. #define RectangleIn  1
  216. #define RectanglePart 2
  217.  
  218.  
  219. /*
  220.  * Information used by the visual utility routines to find desired visual
  221.  * type from the many visuals a display may support.
  222.  */
  223.  
  224. typedef struct {
  225.   Visual *visual;
  226.   VisualID visualid;
  227.   int screen;
  228.   int depth;
  229. #if defined(__cplusplus) || defined(c_plusplus)
  230.   int c_class;                    /* C++ */
  231. #else
  232.   int class;
  233. #endif
  234.   unsigned long red_mask;
  235.   unsigned long green_mask;
  236.   unsigned long blue_mask;
  237.   int colormap_size;
  238.   int bits_per_rgb;
  239. } XVisualInfo;
  240.  
  241. #define VisualNoMask        0x0
  242. #define VisualIDMask         0x1
  243. #define VisualScreenMask    0x2
  244. #define VisualDepthMask        0x4
  245. #define VisualClassMask        0x8
  246. #define VisualRedMaskMask    0x10
  247. #define VisualGreenMaskMask    0x20
  248. #define VisualBlueMaskMask    0x40
  249. #define VisualColormapSizeMask    0x80
  250. #define VisualBitsPerRGBMask    0x100
  251. #define VisualAllMask        0x1FF
  252.  
  253. /*
  254.  * This defines a window manager property that clients may use to
  255.  * share standard color maps of type RGB_COLOR_MAP:
  256.  */
  257. typedef struct {
  258.     Colormap colormap;
  259.     unsigned long red_max;
  260.     unsigned long red_mult;
  261.     unsigned long green_max;
  262.     unsigned long green_mult;
  263.     unsigned long blue_max;
  264.     unsigned long blue_mult;
  265.     unsigned long base_pixel;
  266.     VisualID visualid;        /* added by ICCCM version 1 */
  267.     XID killid;            /* added by ICCCM version 1 */
  268. } XStandardColormap;
  269.  
  270. #define ReleaseByFreeingColormap ((XID) 1L)  /* for killid field above */
  271.  
  272.  
  273. /*
  274.  * return codes for XReadBitmapFile and XWriteBitmapFile
  275.  */
  276. #define BitmapSuccess        0
  277. #define BitmapOpenFailed     1
  278. #define BitmapFileInvalid     2
  279. #define BitmapNoMemory        3
  280.  
  281. /****************************************************************
  282.  *
  283.  * Context Management
  284.  *
  285.  ****************************************************************/
  286.  
  287.  
  288. /* Associative lookup table return codes */
  289.  
  290. #define XCSUCCESS 0    /* No error. */
  291. #define XCNOMEM   1    /* Out of memory */
  292. #define XCNOENT   2    /* No entry in table */
  293.  
  294. typedef int XContext;
  295.  
  296. #define XUniqueContext()       ((XContext) XrmUniqueQuark())
  297. #define XStringToContext(string)   ((XContext) XrmStringToQuark(string))
  298.  
  299. _XFUNCPROTOBEGIN
  300.  
  301. /* The following declarations are alphabetized. */
  302.  
  303. extern XClassHint *XAllocClassHint (
  304. #if NeedFunctionPrototypes
  305.     void
  306. #endif
  307. );
  308.  
  309. extern XIconSize *XAllocIconSize (
  310. #if NeedFunctionPrototypes
  311.     void
  312. #endif
  313. );
  314.  
  315. extern XSizeHints *XAllocSizeHints (
  316. #if NeedFunctionPrototypes
  317.     void
  318. #endif
  319. );
  320.  
  321. extern XStandardColormap *XAllocStandardColormap (
  322. #if NeedFunctionPrototypes
  323.     void
  324. #endif
  325. );
  326.  
  327. extern XWMHints *XAllocWMHints (
  328. #if NeedFunctionPrototypes
  329.     void
  330. #endif
  331. );
  332.  
  333. extern XClipBox(
  334. #if NeedFunctionPrototypes
  335.     Region        /* r */,
  336.     XRectangle*        /* rect_return */
  337. #endif
  338. );
  339.  
  340. extern Region XCreateRegion(
  341. #if NeedFunctionPrototypes
  342.     void
  343. #endif
  344. );
  345.  
  346. extern char *XDefaultString(
  347. #if NeedFunctionPrototypes
  348.     void
  349. #endif
  350. );
  351.  
  352. extern int XDeleteContext(
  353. #if NeedFunctionPrototypes
  354.     Display*        /* display */,
  355.     XID            /* rid */,
  356.     XContext        /* context */
  357. #endif
  358. );
  359.  
  360. extern XDestroyRegion(
  361. #if NeedFunctionPrototypes
  362.     Region        /* r */
  363. #endif
  364. );
  365.  
  366. extern XEmptyRegion(
  367. #if NeedFunctionPrototypes
  368.     Region        /* r */
  369. #endif
  370. );
  371.  
  372. extern XEqualRegion(
  373. #if NeedFunctionPrototypes
  374.     Region        /* r1 */,
  375.     Region        /* r2 */
  376. #endif
  377. );
  378.  
  379. extern int XFindContext(
  380. #if NeedFunctionPrototypes
  381.     Display*        /* display */,
  382.     XID            /* rid */,
  383.     XContext        /* context */,
  384.     XPointer*        /* data_return */
  385. #endif
  386. );
  387.  
  388. extern Status XGetClassHint(
  389. #if NeedFunctionPrototypes
  390.     Display*        /* display */,
  391.     Window        /* w */,
  392.     XClassHint*        /* class_hints_return */
  393. #endif
  394. );
  395.  
  396. extern Status XGetIconSizes(
  397. #if NeedFunctionPrototypes
  398.     Display*        /* display */,
  399.     Window        /* w */,
  400.     XIconSize**        /* size_list_return */,
  401.     int*        /* count_return */
  402. #endif
  403. );
  404.  
  405. extern Status XGetNormalHints(
  406. #if NeedFunctionPrototypes
  407.     Display*        /* display */,
  408.     Window        /* w */,
  409.     XSizeHints*        /* hints_return */
  410. #endif
  411. );
  412.  
  413. extern Status XGetRGBColormaps(
  414. #if NeedFunctionPrototypes
  415.     Display*        /* display */,
  416.     Window        /* w */,
  417.     XStandardColormap** /* stdcmap_return */,
  418.     int*        /* count_return */,
  419.     Atom        /* property */
  420. #endif
  421. );
  422.  
  423. extern Status XGetSizeHints(
  424. #if NeedFunctionPrototypes
  425.     Display*        /* display */,
  426.     Window        /* w */,
  427.     XSizeHints*        /* hints_return */,
  428.     Atom        /* property */
  429. #endif
  430. );
  431.  
  432. extern Status XGetStandardColormap(
  433. #if NeedFunctionPrototypes
  434.     Display*        /* display */,
  435.     Window        /* w */,
  436.     XStandardColormap*    /* colormap_return */,
  437.     Atom        /* property */                
  438. #endif
  439. );
  440.  
  441. extern Status XGetTextProperty(
  442. #if NeedFunctionPrototypes
  443.     Display*        /* display */,
  444.     Window        /* window */,
  445.     XTextProperty*    /* text_prop_return */,
  446.     Atom        /* property */
  447. #endif
  448. );
  449.  
  450. extern XVisualInfo *XGetVisualInfo(
  451. #if NeedFunctionPrototypes
  452.     Display*        /* display */,
  453.     long        /* vinfo_mask */,
  454.     XVisualInfo*    /* vinfo_template */,
  455.     int*        /* nitems_return */
  456. #endif
  457. );
  458.  
  459. extern Status XGetWMClientMachine(
  460. #if NeedFunctionPrototypes
  461.     Display*        /* display */,
  462.     Window        /* w */,
  463.     XTextProperty*    /* text_prop_return */
  464. #endif
  465. );
  466.  
  467. extern XWMHints *XGetWMHints(
  468. #if NeedFunctionPrototypes
  469.     Display*        /* display */,
  470.     Window        /* w */              
  471. #endif
  472. );
  473.  
  474. extern Status XGetWMIconName(
  475. #if NeedFunctionPrototypes
  476.     Display*        /* display */,
  477.     Window        /* w */,
  478.     XTextProperty*    /* text_prop_return */
  479. #endif
  480. );
  481.  
  482. extern Status XGetWMName(
  483. #if NeedFunctionPrototypes
  484.     Display*        /* display */,
  485.     Window        /* w */,
  486.     XTextProperty*    /* text_prop_return */
  487. #endif
  488. );
  489.  
  490. extern Status XGetWMNormalHints(
  491. #if NeedFunctionPrototypes
  492.     Display*        /* display */,
  493.     Window        /* w */,
  494.     XSizeHints*        /* hints_return */,
  495.     long*        /* supplied_return */ 
  496. #endif
  497. );
  498.  
  499. extern Status XGetWMSizeHints(
  500. #if NeedFunctionPrototypes
  501.     Display*        /* display */,
  502.     Window        /* w */,
  503.     XSizeHints*        /* hints_return */,
  504.     long*        /* supplied_return */,
  505.     Atom        /* property */
  506. #endif
  507. );
  508.  
  509. extern Status XGetZoomHints(
  510. #if NeedFunctionPrototypes
  511.     Display*        /* display */,
  512.     Window        /* w */,
  513.     XSizeHints*        /* zhints_return */
  514. #endif
  515. );
  516.  
  517. extern XIntersectRegion(
  518. #if NeedFunctionPrototypes
  519.     Region        /* sra */,
  520.     Region        /* srb */,
  521.     Region        /* dr_return */
  522. #endif
  523. );
  524.  
  525. extern int XLookupString(
  526. #if NeedFunctionPrototypes
  527.     XKeyEvent*        /* event_struct */,
  528.     char*        /* buffer_return */,
  529.     int            /* bytes_buffer */,
  530.     KeySym*        /* keysym_return */,
  531.     XComposeStatus*    /* status_in_out */
  532. #endif
  533. );
  534.  
  535. extern Status XMatchVisualInfo(
  536. #if NeedFunctionPrototypes
  537.     Display*        /* display */,
  538.     int            /* screen */,
  539.     int            /* depth */,
  540.     int            /* class */,
  541.     XVisualInfo*    /* vinfo_return */
  542. #endif
  543. );
  544.  
  545. extern XOffsetRegion(
  546. #if NeedFunctionPrototypes
  547.     Region        /* r */,
  548.     int            /* dx */,
  549.     int            /* dy */
  550. #endif
  551. );
  552.  
  553. extern Bool XPointInRegion(
  554. #if NeedFunctionPrototypes
  555.     Region        /* r */,
  556.     int            /* x */,
  557.     int            /* y */
  558. #endif
  559. );
  560.  
  561. extern Region XPolygonRegion(
  562. #if NeedFunctionPrototypes
  563.     XPoint*        /* points */,
  564.     int            /* n */,
  565.     int            /* fill_rule */
  566. #endif
  567. );
  568.  
  569. extern int XRectInRegion(
  570. #if NeedFunctionPrototypes
  571.     Region        /* r */,
  572.     int            /* x */,
  573.     int            /* y */,
  574.     unsigned int    /* width */,
  575.     unsigned int    /* height */
  576. #endif
  577. );
  578.  
  579. extern int XSaveContext(
  580. #if NeedFunctionPrototypes
  581.     Display*        /* display */,
  582.     XID            /* rid */,
  583.     XContext        /* context */,
  584.     _Xconst char*    /* data */
  585. #endif
  586. );
  587.  
  588. extern XSetClassHint(
  589. #if NeedFunctionPrototypes
  590.     Display*        /* display */,
  591.     Window        /* w */,
  592.     XClassHint*        /* class_hints */
  593. #endif
  594. );
  595.  
  596. extern XSetIconSizes(
  597. #if NeedFunctionPrototypes
  598.     Display*        /* display */,
  599.     Window        /* w */,
  600.     XIconSize*        /* size_list */,
  601.     int            /* count */    
  602. #endif
  603. );
  604.  
  605. extern XSetNormalHints(
  606. #if NeedFunctionPrototypes
  607.     Display*        /* display */,
  608.     Window        /* w */,
  609.     XSizeHints*        /* hints */
  610. #endif
  611. );
  612.  
  613. extern void XSetRGBColormaps(
  614. #if NeedFunctionPrototypes
  615.     Display*        /* display */,
  616.     Window        /* w */,
  617.     XStandardColormap*    /* stdcmaps */,
  618.     int            /* count */,
  619.     Atom        /* property */
  620. #endif
  621. );
  622.  
  623. extern XSetSizeHints(
  624. #if NeedFunctionPrototypes
  625.     Display*        /* display */,
  626.     Window        /* w */,
  627.     XSizeHints*        /* hints */,
  628.     Atom        /* property */
  629. #endif
  630. );
  631.  
  632. extern XSetStandardProperties(
  633. #if NeedFunctionPrototypes
  634.     Display*        /* display */,
  635.     Window        /* w */,
  636.     _Xconst char*    /* window_name */,
  637.     _Xconst char*    /* icon_name */,
  638.     Pixmap        /* icon_pixmap */,
  639.     char**        /* argv */,
  640.     int            /* argc */,
  641.     XSizeHints*        /* hints */
  642. #endif
  643. );
  644.  
  645. extern void XSetTextProperty(
  646. #if NeedFunctionPrototypes
  647.     Display*        /* display */,
  648.     Window        /* w */,
  649.     XTextProperty*    /* text_prop */,
  650.     Atom        /* property */
  651. #endif
  652. );
  653.  
  654. extern void XSetWMClientMachine(
  655. #if NeedFunctionPrototypes
  656.     Display*        /* display */,
  657.     Window        /* w */,
  658.     XTextProperty*    /* text_prop */
  659. #endif
  660. );
  661.  
  662. extern XSetWMHints(
  663. #if NeedFunctionPrototypes
  664.     Display*        /* display */,
  665.     Window        /* w */,
  666.     XWMHints*        /* wm_hints */
  667. #endif
  668. );
  669.  
  670. extern void XSetWMIconName(
  671. #if NeedFunctionPrototypes
  672.     Display*        /* display */,
  673.     Window        /* w */,
  674.     XTextProperty*    /* text_prop */
  675. #endif
  676. );
  677.  
  678. extern void XSetWMName(
  679. #if NeedFunctionPrototypes
  680.     Display*        /* display */,
  681.     Window        /* w */,
  682.     XTextProperty*    /* text_prop */
  683. #endif
  684. );
  685.  
  686. extern void XSetWMNormalHints(
  687. #if NeedFunctionPrototypes
  688.     Display*        /* display */,
  689.     Window        /* w */,
  690.     XSizeHints*        /* hints */
  691. #endif
  692. );
  693.  
  694. extern void XSetWMProperties(
  695. #if NeedFunctionPrototypes
  696.     Display*        /* display */,
  697.     Window        /* w */,
  698.     XTextProperty*    /* window_name */,
  699.     XTextProperty*    /* icon_name */,
  700.     char**        /* argv */,
  701.     int            /* argc */,
  702.     XSizeHints*        /* normal_hints */,
  703.     XWMHints*        /* wm_hints */,
  704.     XClassHint*        /* class_hints */
  705. #endif
  706. );
  707.  
  708. extern void XmbSetWMProperties(
  709. #if NeedFunctionPrototypes
  710.     Display*        /* display */,
  711.     Window        /* w */,
  712.     _Xconst char*    /* window_name */,
  713.     _Xconst char*    /* icon_name */,
  714.     char**        /* argv */,
  715.     int            /* argc */,
  716.     XSizeHints*        /* normal_hints */,
  717.     XWMHints*        /* wm_hints */,
  718.     XClassHint*        /* class_hints */
  719. #endif
  720. );
  721.  
  722. extern void XSetWMSizeHints(
  723. #if NeedFunctionPrototypes
  724.     Display*        /* display */,
  725.     Window        /* w */,
  726.     XSizeHints*        /* hints */,
  727.     Atom        /* property */
  728. #endif
  729. );
  730.  
  731. extern XSetRegion(
  732. #if NeedFunctionPrototypes
  733.     Display*        /* display */,
  734.     GC            /* gc */,
  735.     Region        /* r */
  736. #endif
  737. );
  738.  
  739. extern void XSetStandardColormap(
  740. #if NeedFunctionPrototypes
  741.     Display*        /* display */,
  742.     Window        /* w */,
  743.     XStandardColormap*    /* colormap */,
  744.     Atom        /* property */
  745. #endif
  746. );
  747.  
  748. extern XSetZoomHints(
  749. #if NeedFunctionPrototypes
  750.     Display*        /* display */,
  751.     Window        /* w */,
  752.     XSizeHints*        /* zhints */
  753. #endif
  754. );
  755.  
  756. extern XShrinkRegion(
  757. #if NeedFunctionPrototypes
  758.     Region        /* r */,
  759.     int            /* dx */,
  760.     int            /* dy */
  761. #endif
  762. );
  763.  
  764. extern Status XStringListToTextProperty(
  765. #if NeedFunctionPrototypes
  766.     char**        /* list */,
  767.     int            /* count */,
  768.     XTextProperty*    /* text_prop_return */
  769. #endif
  770. );
  771.  
  772. extern XSubtractRegion(
  773. #if NeedFunctionPrototypes
  774.     Region        /* sra */,
  775.     Region        /* srb */,
  776.     Region        /* dr_return */
  777. #endif
  778. );
  779.  
  780. extern int XmbTextListToTextProperty(
  781. #if NeedFunctionPrototypes
  782.     Display*        /* display */,
  783.     char**        /* list */,
  784.     int            /* count */,
  785.     XICCEncodingStyle    /* style */,
  786.     XTextProperty*    /* text_prop_return */
  787. #endif
  788. );
  789.  
  790. extern int XwcTextListToTextProperty(
  791. #if NeedFunctionPrototypes
  792.     Display*        /* display */,
  793.     wchar_t**        /* list */,
  794.     int            /* count */,
  795.     XICCEncodingStyle    /* style */,
  796.     XTextProperty*    /* text_prop_return */
  797. #endif
  798. );
  799.  
  800. extern void XwcFreeStringList(
  801. #if NeedFunctionPrototypes
  802.     wchar_t**        /* list */
  803. #endif
  804. );
  805.  
  806. extern Status XTextPropertyToStringList(
  807. #if NeedFunctionPrototypes
  808.     XTextProperty*    /* text_prop */,
  809.     char***        /* list_return */,
  810.     int*        /* count_return */
  811. #endif
  812. );
  813.  
  814. extern int XmbTextPropertyToTextList(
  815. #if NeedFunctionPrototypes
  816.     Display*        /* display */,
  817.     XTextProperty*    /* text_prop */,
  818.     char***        /* list_return */,
  819.     int*        /* count_return */
  820. #endif
  821. );
  822.  
  823. extern int XwcTextPropertyToTextList(
  824. #if NeedFunctionPrototypes
  825.     Display*        /* display */,
  826.     XTextProperty*    /* text_prop */,
  827.     wchar_t***        /* list_return */,
  828.     int*        /* count_return */
  829. #endif
  830. );
  831.  
  832. extern XUnionRectWithRegion(
  833. #if NeedFunctionPrototypes
  834.     XRectangle*        /* rectangle */,
  835.     Region        /* src_region */,
  836.     Region        /* dest_region_return */
  837. #endif
  838. );
  839.  
  840. extern XUnionRegion(
  841. #if NeedFunctionPrototypes
  842.     Region        /* sra */,
  843.     Region        /* srb */,
  844.     Region        /* dr_return */
  845. #endif
  846. );
  847.  
  848. extern int XWMGeometry(
  849. #if NeedFunctionPrototypes
  850.     Display*        /* display */,
  851.     int            /* screen_number */,
  852.     _Xconst char*    /* user_geometry */,
  853.     _Xconst char*    /* default_geometry */,
  854.     unsigned int    /* border_width */,
  855.     XSizeHints*        /* hints */,
  856.     int*        /* x_return */,
  857.     int*        /* y_return */,
  858.     int*        /* width_return */,
  859.     int*        /* height_return */,
  860.     int*        /* gravity_return */
  861. #endif
  862. );
  863.  
  864. extern XXorRegion(
  865. #if NeedFunctionPrototypes
  866.     Region        /* sra */,
  867.     Region        /* srb */,
  868.     Region        /* dr_return */
  869. #endif
  870. );
  871.  
  872. _XFUNCPROTOEND
  873.  
  874. #endif /* _XUTIL_H_ */
  875.